class StringUtils{

  static String formatPrice(String price){
    if(price.trim().isEmpty){
      return price;
    }
    var prices=price.split(".");
    if(prices.length==1){
      return prices[0]+".00";
    }
    return price;
  }
  static List<String> splitPrice(String price){
    if(price.trim().isEmpty){
      return ["00","00"];
    }
    var prices=price.split(".");
    if(prices.length==1){
      return [prices[0],"00"];
    }
    return prices;
  }

  static String formatPhone(String phone){
    if(phone.length<8){
      return phone;
    }
    return phone.substring(0,3)+"****"+phone.substring(phone.length-4,phone.length);
  }
}